import formBuilder from "@/comps/form/formBuilder";
import apiDepartment from "@/pages/v1/erp/Department/js/apiDepartment";
import apiNeedStatus from "@/pages/v1/erp/NeedStatus/js/apiNeedStatus";

export default function () {
    let fb = formBuilder()
    fb.setLabelPosition("right").setLabelWidth(100)
    fb.addText("sn__regex").setLabel("单据编号").setSpan(2)
    fb.addText("title__regex").setLabel("单据主题").setSpan(2)
    fb.addCascade("statusId","状态",2)
        .setApi(apiNeedStatus.urlTree)
    fb.addCascade("needDeptId","需求部门",2)
        .setApi(apiDepartment.urlTree)
    return fb
}